package com.djinfo.work.activiti.dao.impl;

import com.djinfo.work.activiti.dao.LeaveApplyDao;
import com.djinfo.work.activiti.po.LeaveApply;
import com.djinfo.work.common.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

/**
 * 请假
 */
@Repository("LeaveApplyDao")
public class LeaveApplyDaoImpl extends BaseDaoImpl implements LeaveApplyDao{

	@Override
	public LeaveApply get(String id) {
		LeaveApply leaveApply = this.getEntity(LeaveApply.class,id);
		return leaveApply;
	}

	@Override
	public void updateleave(String id, String instanceid) {
		LeaveApply leaveApply = this.getEntity(LeaveApply.class,id);
		leaveApply.setProcess_instance_id(instanceid);
		this.merge(leaveApply);
	}


}
